package cn.zhanghu;

//import java.awt.*;

/**
 * Created by dell on 2017/7/4.
 */
public class Rage {
    private double width;
    private double length;
    private double height;

    public Rage(double width, double length) {
        this.width = width;
        this.length = length;
    }

    public Rage(double length, double width, double height) {
        this.length = length;
        this.width = width;
        this.height = height;
    }

    public double area() {
        return width * length;
    }

   public  double volume() {
        return width * length * height;
    }
}
